﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ongoal.Quotation
{
    /// <summary>
    /// 鉴权设置
    /// </summary>
    [Serializable]
    public class AuthSetting
    {
        /// <summary>
        /// 30分钟内登录失败超过限制次数则锁定
        /// </summary>
        public int LockLimit { get; set; } = 5;
        /// <summary>
        /// 鉴权服务地址
        /// </summary>
        public string Server { get; set; }

        /// <summary>
        /// 重定向地址
        /// </summary>
        public string Redirect { get; set; }

        /// <summary>
        /// 跨域设置
        /// </summary>
        public List<string> Cors { get; set; }
    }

    /// <summary>
    /// 当前服务基本信息
    /// </summary>
    [Serializable]
    public class ServiceInfo
    {
        /// <summary>
        /// 服务名称
        /// </summary>
        public string? ApiName { get; set; }

        /// <summary>
        /// 服务域名
        /// </summary>
        public string? Gateway { get; set; }

    }
}
